import cloneDeep from 'lodash/cloneDeep'
import * as mutations from '../mutations/numMutaion'

// count数据模块
const initState = {
  count: 100
}

export default (state = initState, { type, payload }) => {
  let newState = cloneDeep(state)

  return mutations[type] ? mutations[type](newState, payload) : newState
}
